package payroll.trans;


import payroll.method.DirectMethod;
import payroll.method.PaymentMethod;

public class ChangeDirectTransaction extends ChangeMethodTransaction {

   
    private String bank;
    private String account;
    public ChangeDirectTransaction(int empId, String bank, String account) {
        
        super(empId);
        
        this.bank = bank;
        this.account = account;
    }
  
    @Override
    protected PaymentMethod getPaymentMethod() {
        return new DirectMethod(bank, account);
    }

}
